package com.cha.chaApp.vaccination.redis;

import com.cha.chaApp.vaccination.dao.VaccinationTypeDao;

import org.springframework.stereotype.Service;


import javax.annotation.Resource;


@Service
public class VaccinationTypeRedis {
    @Resource
    private VaccinationTypeDao vaccinationTypeDao;
   // @PostConstruct
//    public void init() {
//        String key = "Vaccination:type";
//        List<VaccinationType> list = (List<VaccinationType>) RedisUtils.getValue(key);
//        if (list!=null && list.size()==0) {
//            list = vaccinationTypeDao.selectAllVaccinationTypeById();
//            RedisUtils.setValueTimeout(key, list, 24 * 3600);
//        }
//        System.out.println("nihao");
//    }

}
